package com.mq.common;
/*
* 表示一个消费者，完整的执行环境*/
public class ConsumerEnv {
    private String conumerTag;
    private String queueName;
    private boolean autoAck;
    //通过这个回调来处理收到的消息
    private Consumer consumer;

    public String getConumerTag() {
        return conumerTag;
    }

    public void setConumerTag(String conumerTag) {
        this.conumerTag = conumerTag;
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public boolean isAutoAck() {
        return autoAck;
    }

    public void setAutoAck(boolean autoAck) {
        this.autoAck = autoAck;
    }

    public Consumer getConsumer() {
        return consumer;
    }

    public void setConsumer(Consumer consumer) {
        this.consumer = consumer;
    }

    public ConsumerEnv(String conumerTag, String queueName, boolean autoAck, Consumer consumer){
        this.conumerTag = conumerTag;
        this.queueName = queueName;
        this.autoAck = autoAck;
        this.consumer = consumer;


    }
}
